import React from 'react';

import { Divider } from 'antd';

export default [{
  title: '奖品名称',
  dataIndex: 'GoodsPrizes',
  width: '50%',
  render: row => Array.isArray(row) && row.map(item => (
    <span key={item.id}>
      {item.title}
      <Divider dashed style={{margin: 0}} />
    </span>
  )),
}, {
  title: '开奖条件',
  dataIndex: 'type',
  render: text => text === 0 ? '按时间开奖' : text === 1 ? '按人数开奖' : '按时间开奖',
}, {
  title: '开奖人数',
  dataIndex: 'number',
  render: text => <span>{text}人</span>,
}, {
  title: '发起人',
  dataIndex: 'nickname',
}];